using UnityEngine;

public class Battle_TriggerOnCollide : MonoBehaviour
{
	public Battle Battle;

	[HideInInspector]
	public bool HasBeganBattle;

	private void OnTriggerEnter2D(Collider2D collision)
	{
		//IL_0032: Unknown result type (might be due to invalid IL or missing references)
		//IL_0037: Unknown result type (might be due to invalid IL or missing references)
		if (((Component)collision).gameObject.tag == "Player" && !HasBeganBattle)
		{
			HasBeganBattle = true;
			BattleSystem.StartBattle(Battle, Vector2.op_Implicit(((Component)this).transform.position));
		}
	}
}
